﻿@using OASystem.Model;
@{
    List<Announcement> announcement = ViewBag.departionfos as List<Announcement>;

}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <link href="~/layui/css/modules/layer/default/layer.css" rel="stylesheet" />
    <script src="~/layui/layui.js"></script>
    <script src="~/Scripts/jquery-3.3.1.js"></script>
    <link rel="stylesheet" href="~/css/base.css" />
    <link rel="stylesheet" href="~/css/home.css" />
    <!--<link href="~/css/bootstrap.min.css" rel="stylesheet" type="text/css">-->
    <link href="~/css/bootstrap-table.css" rel="stylesheet" type="text/css">
    <script src="~/js/jquery-1.10.1.js"></script>
    <script src="~/js/layer_v2.1/layer/layer.js"></script>
    <script src="~/Scripts/jquery.signalR-2.4.1.js"></script>
    <!--引用自动生成的SignalR集线器(Hub)脚本.在运行的时候在浏览器的Source下可看到-->
    <script src="/signalr/hubs" type="text/javascript"></script>
    <script src="/signalr/hubs" type="text/javascript"></script>
    <script src="~/Chen_JS/SingR.js"></script>
    <script src="~/JS2/Ahome.js"></script>
    <script src="~/layui/time.js"></script>

    <title>移动办公自动化系统</title>
</head>


<body>
    <div class="article toolbar">
        <div class="title ue-clear">
            <h2>常用功能</h2>
            <!--<a href="javascript:;" class="more">更多</a>-->
        </div>
        <div class="content">
            <ul class="toollist ue-clear">
                <li>
                    <a href="work.html" class="img" target="right"><img src="~/images/icon01.png" /></a>
                    <p><a href="work.html" target="right">工作日志</a></p>
                </li>
                <li>
                    <a href="email.html" class="img" target="right"><img src="~/images/email03.png" /></a>
                    <p><a href="email.html" target="right">邮箱</a></p>
                </li>
                <li>
                    <a href="mailList.html" class="img" target="right"><img src="~/images/icon02.png" /></a>
                    <p><a href="mailList.html" target="right">通讯录</a></p>
                </li>
                <li>
                    <a href="schedule.html" class="img" target="right"><img src="~/images/icon04.png" /></a>
                    <p><a href="schedule.html" target="right">日程安排</a></p>
                </li>
                <li>
                    <a href="javascript:;" class="img" target="right"><img src="~/images/datecion01.png" /></a>
                    <p><a href="javascript:;" onclick="openlayer()">万年历</a></p>
                </li>
                <li>
                    <a href="leave.html" class="img"><img src="~/images/leave01.png" /></a>
                    <p><a href="leave.html">请假申请</a></p>
                </li>
                <li>
                    <a href="fcontract_sign.html" class="img" target="right"><img src="~/images/posintion01.png" /></a>
                    <p><a href="fcontract_sign.html" target="right">项目合同会签</a></p>
                </li>
                <li>
                    <a href="file_sign.html" class="img" target="right"><img src="~/images/file02.png" /></a>
                    <p><a href="file_sign.html" target="right">文件会签</a></p>
                </li>
                <li>
                    <a href="document_wait.html" class="img" target="right"><img src="~/images/file03.png" /></a>
                    <p><a href="document_wait.html" target="right">公文办理</a></p>
                </li>
                <li>
                    <a href="recode.html" class="img" target="right"><img src="~/images/icon07.png" /></a>
                    <p><a href="recode.html" target="right">定制任务</a></p>
                </li>
                <li>
                    <a href="dossier_my.html" class="img" target="right"><img src="~/images/myFiles.png" /></a>
                    <p><a href="dossier_my.html" target="right">个人档案</a></p>
                </li>
                <li class="add-btn">
                    <img src="~/images/add.png" />
                </li>
            </ul>

        </div>
    </div>
    <div class="article half notice">
        <div class="wrap-l">
            <div class="title ue-clear">
                <h2>通知公告</h2>
                <a href="notice.html" class="more" target="right">更多</a>
            </div>
            <div class="content" style="width: 100%;margin-top: 10px;margin-bottom: 30px;
							white-space: nowrap;overflow-x: auto;-webkit-overflow-scrolling:touch;">

                <ul class="notice-list">
                    @if (announcement != null)
                    {
                        for (int i = 0; i < announcement.Count; i++)
                        {
                            <li class="ue-clear">
                                <a href="javascript:;" class="notice-title">@announcement[i].Ann_Title</a>
                                <div class="notice-time">@announcement[i].CreateTime</div>
                            </li>
                        }
                    }


                </ul>
            </div>
        </div>
    </div>
    <div class="article half matter">
        <div class="wrap-r">
            <div class="title ue-clear">
                <h2 class="title-list">
                    <ul class="ue-clear">
                        <li id="A" class="current"><div>待办公文</div></li>
                        <li id="B"><div>已办公文</div></li>
                    </ul>
                </h2>
                <a href="document_wait.html" class="more" target="right">更多</a>
            </div>
            <div class="content">
                <div class="matter-content current ue-clear">
                    <div class="today">
                        <p class="year">2016年12月</p>
                        <p class="date">15</p>
                    </div>
                    <ul id="Lb" class="matter-list">
                    </ul>
                </div>
            </div>
        </div>

    </div>
    <div style="clear: both"></div>
    <div class="article half duty">
        <div class="wrap-l">
            <div class="title ue-clear">
                <h2>我的任务</h2>
                <a href="myrecode.html" class="more" target="right">更多</a>
            </div>
            <div class="content" style="width: 97%;margin-top: 5px;margin-bottom: 15px;
							white-space: nowrap;overflow-x: auto;-webkit-overflow-scrolling:touch;">
                <table>
                    <thead>
                        <tr>
                            <th class="contact">任务</th>
                            <th class="leader">发布人</th>
                            <th class="contact">日期</th>
                        </tr>
                    </thead>
                    <tbody id="A">
                        @foreach (Taskquery mon in ViewBag.List)
                        {
                            <tr>
                                <td class='contact'>@mon.TaskTiltle</td>
                                <td class='leader'>@mon.Publisher</td>
                                <td class='contact'>@mon.CTime</td>
                            </tr>
                        }
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="article half email">
        <div class="wrap-r">
            <div class="title ue-clear">
                <h2>未读邮件</h2>
                <a href="email.html" class="more" target="right">更多</a>
            </div>
            <div class="content">
                <table>
                    <thead>
                        <tr>
                            <th class="icon"></th>
                            <th class="sender">发件人</th>
                            <th class="subject">主题</th>
                            <th class="time last-item">时间</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="tody">
                            <td colspan="4"><div class="td-wrap"><em>今天</em><a href="javascript:;">(3封)</a></div></td>
                        </tr>
                        <tr>
                            <td class="icon"><div class="td-wrap"></div></td>
                            <td class="sender"><div class="td-wrap">办公室</div></td>
                            <td class="subject"><div class="td-wrap"><a href="javascript:;">关于移动所有工作人员薪资调整的说明文件</a></div></td>
                            <td class="time"><div class="td-wrap">22分钟前</div></td>
                        </tr>
                        <tr>
                            <td class="icon"><div class="td-wrap"></div></td>
                            <td class="sender"><div class="td-wrap">行政部</div></td>
                            <td class="subject"><div class="td-wrap"><a href="javascript:;">行政廉洁形象建设工程要点会议纪要</a></div></td>
                            <td class="time"><div class="td-wrap">1小时前</div></td>
                        </tr>
                        <tr class="open">
                            <td class="icon"><div class="td-wrap"></div></td>
                            <td class="sender"><div class="td-wrap">局长</div></td>
                            <td class="subject"><div class="td-wrap"><a href="javascript:;">部门劳动节放假相关通知</a></div></td>
                            <td class="time"><div class="td-wrap">今天14:23</div></td>
                        </tr>
                        <tr>
                            <td class="icon"><div class="td-wrap"></div></td>
                            <td class="sender"><div class="td-wrap">自贡水务</div></td>
                            <td class="subject"><div class="td-wrap"><a href="javascript:;">2014年度所有公务员征税政策文件下载</a></div></td>
                            <td class="time"><div class="td-wrap">今天10:23</div></td>
                        </tr>
                        <tr>
                            <td class="icon"><div class="td-wrap"></div></td>
                            <td class="sender"><div class="td-wrap">办公室</div></td>
                            <td class="subject"><div class="td-wrap"><a href="javascript:;">关于移动所有工作人员薪资调整的说明文件</a></div></td>
                            <td class="time"><div class="td-wrap">22分钟前</div></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</body>
</html>
<script type="text/javascript">
    var pushHub = $.connection.myChatHub;
    pushHub.client.add = function (message) {
        var srt;
        srt = message;
        srt += $("#A").html();
        $("#A").html(srt);
    }
    $.connection.hub.start();
</script>
@*<script type="text/javascript">

    function openlayer(id) {
        layer.open({
            type: 2,
            title: '万年历',
            shadeClose: true,
            shade: 0.5,
            skin: 'layui-layer-rim',
            //            maxmin: true,
            closeBtn: 2,
            area: ['80%', '75%'],
            shadeClose: true,
            closeBtn: 2,
            content: 'calendar.html'
            //iframe的url
        });
    }
</script>*@